package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.DriverCertificateMapper;
import com.ruoyi.domain.DriverCertificate;
import com.ruoyi.service.IDriverCertificateService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-27
 */
@Service
public class DriverCertificateServiceImpl implements IDriverCertificateService 
{
    @Autowired
    private DriverCertificateMapper driverCertificateMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public DriverCertificate selectDriverCertificateById(Long id)
    {
        return driverCertificateMapper.selectDriverCertificateById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param driverCertificate 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<DriverCertificate> selectDriverCertificateList(DriverCertificate driverCertificate)
    {
        return driverCertificateMapper.selectDriverCertificateList(driverCertificate);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param driverCertificate 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDriverCertificate(DriverCertificate driverCertificate)
    {
        return driverCertificateMapper.insertDriverCertificate(driverCertificate);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param driverCertificate 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDriverCertificate(DriverCertificate driverCertificate)
    {
        return driverCertificateMapper.updateDriverCertificate(driverCertificate);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDriverCertificateByIds(Long[] ids)
    {
        return driverCertificateMapper.deleteDriverCertificateByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDriverCertificateById(Long id)
    {
        return driverCertificateMapper.deleteDriverCertificateById(id);
    }
}
